//
//  Alert.h
//  OCBase
//
//  Created by 侯伟 on 2019/4/16.
//  Copyright © 2019年 侯伟. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "RSAlartViewController.h"
#import "RSConfirmViewController.h"
#import "RSInputViewController.h"

NS_ASSUME_NONNULL_BEGIN
@interface Alert : NSObject


/// 系统弹框
/// @param message 消息
/// @param completion 回调
+ (UIAlertController*)systemAlert:(NSString* _Nullable)title message:(NSString*)message completion:(VoidBlock _Nullable)completion;

/// 默认弹框
/// @param title 标题
/// @param message 消息
/// @param completion 回调
+ (RSAlartViewController*)alert:(NSString* _Nullable)title message:(NSString* __nullable)message completion:(AlertBlock _Nullable)completion;


/// 选择弹框
/// @param title 标题
/// @param message 消息
/// @param completion 回调
+ (RSConfirmViewController*)confirm:(NSString* _Nullable)title message:(NSString* __nullable)message completion:(ConfirmBlock _Nullable)completion;

/// 选择弹框(可修改确定按钮文本)
/// @param title 标题
/// @param message 消息
/// @param confirmTitle 确定按钮文本
/// @param completion 回调
+ (RSConfirmViewController*)confirmChange:(NSString* _Nullable)title message:(NSString* __nullable)message confirmTitle:(NSString* __nullable)confirmTitle  cancelTitle:(NSString* __nullable)cancelTitle completion:(ConfirmBlock __nullable)completion;


/// 输入出弹出框
/// @param title 表头
/// @param text 默认文本
/// @param placeholder 占位文本
/// @param completion 回调
+(RSInputViewController*)prompt:(NSString* _Nullable)title text:(NSString* __nullable)text placeholder:(NSString* __nullable)placeholder completion:(StringBlock __nullable)completion;

/// 输入出弹出框
/// @param title 标题
/// @param text 默认文本
/// @param placeholder 占位文本
/// @param completion 回调
+(UIAlertController*)systemPrompt:(NSString* __nullable)title text:(NSString* __nullable)text placeholder:(NSString* __nullable)placeholder completion:(InputBlock __nullable)completion;

@end

NS_ASSUME_NONNULL_END
